package com.oak.designmode._17_adapterPattern.object;

/**
 * 对象适配器
 *
 * @Description  实现接口适配，更加灵活
 * @Author guoxy
 * @Date 2020/3/17
 * @Version 1.0
 */
public class PlayAdapter implements Study {

    private Play play;

    public PlayAdapter(Play play){
        this.play = play;
    }

    @Override
    public void studyEnglish() {
        if(play!=null){
            play.playComputer();
        }
    }
}
